using System;
using System.Data.Linq;
using System.Data.Linq.Mapping;
namespace MicroMsg.Storage
{
	[Table]
	public class MsgTrans : StorageItem
	{
		private const uint Field_nMsgTransID = 1u;
		private const uint Field_nMsgLocalID = 2u;
		private const uint Field_nMsgSvrID = 4u;
		private const uint Field_nTransType = 8u;
		private const uint Field_nStatus = 16u;
		private const uint Field_strFromUserName = 32u;
		private const uint Field_strToUserName = 64u;
		private const uint Field_nTransDataLen = 128u;
		private const uint Field_nTotalDataLen = 256u;
		private const uint Field_strThumbnail = 512u;
		private const uint Field_strImagePath = 1024u;
		private const uint Field_nCreateTime = 2048u;
		private const uint Field_nLastModifyTime = 4096u;
		private const uint Field_nDuration = 8192u;
		private const uint Field_nRecordLength = 16384u;
		private const uint Field_nEndFlag = 32768u;
		private const uint Field_strClientMsgId = 65536u;
		private const uint Field_bytesXmlData = 131072u;
		private int _nMsgTransID;
		private int _nMsgLocalID;
		private int _nMsgSvrID;
		private int _nTransType;
		private int _nStatus;
		private string _strFromUserName;
		private string _strToUserName;
		private int _nTransDataLen;
		private int _nTotalDataLen;
		private string _strThumbnail;
		private string _strImagePath;
		private long _nCreateTime;
		private uint _nLastModifyTime;
		private int _nDuration;
		private int _nRecordLength;
		private int _nEndFlag;
		private string _strClientMsgId;
		private byte[] _bytesXmlData;
		[Column(IsVersion = true)]
		private Binary _version;
		[Column(IsPrimaryKey = true)]
		public int nMsgTransID
		{
			get
			{
				return this._nMsgTransID;
			}
			set
			{
				this._nMsgTransID = value;
				this.modify |= 1L;
			}
		}
		[Column]
		public int nMsgLocalID
		{
			get
			{
				return this._nMsgLocalID;
			}
			set
			{
				this._nMsgLocalID = value;
				this.modify |= 2L;
			}
		}
		[Column]
		public int nMsgSvrID
		{
			get
			{
				return this._nMsgSvrID;
			}
			set
			{
				this._nMsgSvrID = value;
				this.modify |= 4L;
			}
		}
		[Column]
		public int nTransType
		{
			get
			{
				return this._nTransType;
			}
			set
			{
				this._nTransType = value;
				this.modify |= 8L;
			}
		}
		[Column]
		public int nStatus
		{
			get
			{
				return this._nStatus;
			}
			set
			{
				this._nStatus = value;
				this.modify |= 16L;
			}
		}
		[Column]
		public string strFromUserName
		{
			get
			{
				return this._strFromUserName;
			}
			set
			{
				this._strFromUserName = value;
				this.modify |= 32L;
			}
		}
		[Column]
		public string strToUserName
		{
			get
			{
				return this._strToUserName;
			}
			set
			{
				this._strToUserName = value;
				this.modify |= 64L;
			}
		}
		[Column]
		public int nTransDataLen
		{
			get
			{
				return this._nTransDataLen;
			}
			set
			{
				this._nTransDataLen = value;
				this.modify |= 128L;
			}
		}
		[Column]
		public int nTotalDataLen
		{
			get
			{
				return this._nTotalDataLen;
			}
			set
			{
				this._nTotalDataLen = value;
				this.modify |= 256L;
			}
		}
		[Column]
		public string strThumbnail
		{
			get
			{
				return this._strThumbnail;
			}
			set
			{
				this._strThumbnail = value;
				this.modify |= 512L;
			}
		}
		[Column]
		public string strImagePath
		{
			get
			{
				return this._strImagePath;
			}
			set
			{
				this._strImagePath = value;
				this.modify |= 1024L;
			}
		}
		[Column]
		public long nCreateTime
		{
			get
			{
				return this._nCreateTime;
			}
			set
			{
				this._nCreateTime = value;
				this.modify |= 2048L;
			}
		}
		[Column]
		public uint nLastModifyTime
		{
			get
			{
				return this._nLastModifyTime;
			}
			set
			{
				this._nLastModifyTime = value;
				this.modify |= 4096L;
			}
		}
		[Column]
		public int nDuration
		{
			get
			{
				return this._nDuration;
			}
			set
			{
				this._nDuration = value;
				this.modify |= 8192L;
			}
		}
		[Column]
		public int nRecordLength
		{
			get
			{
				return this._nRecordLength;
			}
			set
			{
				this._nRecordLength = value;
				this.modify |= 16384L;
			}
		}
		[Column]
		public int nEndFlag
		{
			get
			{
				return this._nEndFlag;
			}
			set
			{
				this._nEndFlag = value;
				this.modify |= 32768L;
			}
		}
		[Column]
		public string strClientMsgId
		{
			get
			{
				return this._strClientMsgId;
			}
			set
			{
				this._strClientMsgId = value;
				this.modify |= 65536L;
			}
		}
		[Column]
		public byte[] bytesXmlData
		{
			get
			{
				return this._bytesXmlData;
			}
			set
			{
				this._bytesXmlData = value;
				this.modify |= 131072L;
			}
		}
		public override void merge(object object_0)
		{
			MsgTrans msgTrans = object_0 as MsgTrans;
			if (0L != (msgTrans.modify & 4L))
			{
				this._nMsgSvrID = msgTrans._nMsgSvrID;
			}
			if (0L != (msgTrans.modify & 2L))
			{
				this._nMsgLocalID = msgTrans._nMsgLocalID;
			}
			if (0L != (msgTrans.modify & 8L))
			{
				this._nTransType = msgTrans._nTransType;
			}
			if (0L != (msgTrans.modify & 16L))
			{
				this._nStatus = msgTrans._nStatus;
			}
			if (0L != (msgTrans.modify & 32L))
			{
				this._strFromUserName = msgTrans._strFromUserName;
			}
			if (0L != (msgTrans.modify & 64L))
			{
				this._strToUserName = msgTrans._strToUserName;
			}
			if (0L != (msgTrans.modify & 128L))
			{
				this._nTransDataLen = msgTrans._nTransDataLen;
			}
			if (0L != (msgTrans.modify & 256L))
			{
				this._nTotalDataLen = msgTrans._nTotalDataLen;
			}
			if (0L != (msgTrans.modify & 512L))
			{
				this._strThumbnail = msgTrans._strThumbnail;
			}
			if (0L != (msgTrans.modify & 1024L))
			{
				this._strImagePath = msgTrans._strImagePath;
			}
			if (0L != (msgTrans.modify & 2048L))
			{
				this._nCreateTime = msgTrans._nCreateTime;
			}
			if (0L != (msgTrans.modify & 4096L))
			{
				this._nLastModifyTime = msgTrans._nLastModifyTime;
			}
			if (0L != (msgTrans.modify & 8192L))
			{
				this._nDuration = msgTrans._nDuration;
			}
			if (0L != (msgTrans.modify & 16384L))
			{
				this._nRecordLength = msgTrans._nRecordLength;
			}
			if (0L != (msgTrans.modify & 32768L))
			{
				this._nEndFlag = msgTrans._nEndFlag;
			}
			if (0L != (msgTrans.modify & 65536L))
			{
				this._strClientMsgId = msgTrans._strClientMsgId;
			}
			if (0L != (msgTrans.modify & 131072L))
			{
				this._bytesXmlData = msgTrans._bytesXmlData;
			}
		}
	}
}
